.popup-container-style1 {
  position: fixed;
  top: 20%;
  right: 10%;
  z-index: 999;
  width: 400px;
  height: 500px;
  background-color: rgba(0, 0, 0, 0.3);
  animation: fade-in 0.5s ease-in-out;
  @keyframes fade-in {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }
}

.popup-container-style2 {
  position: fixed;
  top: 20%;
  left: -400px; /* 初始位置在视口外面，从左边开始 */
  z-index: 999;
  width: 400px;
  height: 500px;
  background-color: rgba(0, 0, 0, 0.3);
  animation: slide-left 0.6s ease-in-out forwards; /* 使用slide-in动画 */
  @keyframes slide-left {
    0% {
      left: -400px; /* 动画开始时，元素位于视口左侧外面 */
    }
    60% {
      left: 14%; /* 元素快速到达稍微偏右的地方，制造弹性效果 */
    }
    100% {
      left: 10%; /* 最终回到目标位置 */
    }
  }
}
.popup-container-style3 {
  position: fixed;
  top: 20%;
  right: -400px; /* 初始位置在视口外面，从右边开始 */
  z-index: 999;
  width: 400px;
  height: 500px;
  background-color: rgba(0, 0, 0, 0.3);
  animation: slide-in 0.6s ease-in-out forwards; /* 使用slide-in动画 */

  @keyframes slide-in {
    0% {
      right: -400px; /* 动画开始时，元素位于视口右侧外面 */
    }
    60% {
      right: 14%; /* 元素快速到达稍微偏左的地方，制造弹性效果 */
    }
    100% {
      right: 10%; /* 最终回到目标位置 */
    }
  }
}

.popup-container-style1,
.popup-container-style2,
.popup-container-style3 {
  .dialog {
    width: 100%;
    height: 100%;
    padding: 10px 0;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);

    .popup-title {
      width: 100%;
      height: 35px;
      padding-left: 80px;
      color: #fff;
      font-weight: bold;
      font-size: 16px;
      line-height: 30px;
      text-shadow: 0 0 0.25rem #fff, 0 0 0.3125rem #fff, 0 0 0.3125rem #3a85c5, 0 0 2.5rem #3a85c5,
        0 0 1.25rem #3a85c5, 0 0 1.25rem #3a85c5, 0 0 3.125rem #3a85c5, 0 0 3.125rem #3a85c5;
      background: url('~@/assets/images/panorama/dialog/title.png') no-repeat;
      background-size: 100% 100%;
    }

    .popup-content {
      width: 100%;
      height: 400px;
      padding: 20px;
      color: #fff;
    }
  }
}

// 小屏设备（手机）适配
@media (max-width: 600px) {
  .popup-container-style1,
  .popup-container-style2,
  .popup-container-style3 {
    position: fixed;

    position: fixed;
    top: 20%;
    right: 5%;
    z-index: 999;
    width: 90vw;
    height: 40vh;
  }
}
